import _axios from "@/plugins/axios";


// 提现
export function withdrawApply({amount, type, userCardId}) {
    return _axios({
        url: '/balance/withdraw/apply',
        method: 'post',
        data: {
            amount, // 提现金额
            type, // 类型(amount：账户余额、 commission：佣金余额)
            userCardId // 用户卡片ID
        }
    })
}

// 提现列表
export function withdrawList({pageNo, pageSize}) {
    return _axios({
        url: '/balance/withdraw/list',
        method: 'get',
        params: {
            pageNo, // pageNo,示例值(1)
            pageSize // pageSize,示例值(10)
        }
    })
}

/**
 * 提现申请-详情
 * @param withdrawApplyId string id
 */
export function withdrawDetail(data) {
    return _axios({
        url: '/balance/withdraw/detail',
        method: 'get',
        params: data
    })
}